import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 导入第三方的组件
import { Button, Tabbar, Swipe, SwipeItem, TabbarItem, NavBar, Sidebar, SidebarItem, Icon, Form, Field } from 'vant';



// 注册组件
Vue.use(Icon);
Vue.use(Sidebar);
Vue.use(SidebarItem);
Vue.use(NavBar);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Form);
Vue.use(Field);
Vue.use(Button);
Vue.use(Swipe);
Vue.use(SwipeItem);

Vue.config.productionTip = false

//导入自己写的组件 
import Banner from './components/Home/Banner.vue';
import List from './components/Home/List.vue';
import Search from './components/Home/Search.vue';
import Sort from './components/Home/Sort.vue';

// 爆爆团中的组件
import Header from './components/Tuan/Header.vue';
import ListTuan from './components/Tuan/ListTuan.vue';

// 我的页面的常用工具
import Mine_tools from './components/Mine_tools.vue';

import Shopcart from './components/Shopcart.vue'

Vue.component('Banner', Banner);
Vue.component('List', List);
Vue.component('Search', Search);
Vue.component('Sort', Sort);


Vue.component('Header', Header);
Vue.component('ListTuan', ListTuan);

Vue.component('Mine_tools', Mine_tools);

Vue.component('Shopcart', Shopcart);


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
